package com.ruoyi.walmart.domain.Inventory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InventoryPayload {
    private Headers headers;
    private Payload payload;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class Headers {
        private Integer totalCount;
        private Integer limit;
        private Integer offset;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class Payload {
        private List<InventoryItem> inventory;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class InventoryItem {
        private String sku;
        private List<ShipNode> shipNodes;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class ShipNode {
        private Date modifiedDate;
        private Long availToSellQty;
        private Long onHandQty;
        private String shipNodeType;
    }
}






